{extend name="public/common"}
{block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">

 span:hover{
 	color: #333;
 }
.btn-primary:hover{
	background:#409eff !important;
 	border-color: #409eff !important;
 	color: #fff !important;
}
.tabBar{
	width: 102.5%;
    height: 40px;
    margin-left: -20px;
    background-color: #e5e5e5;
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 10px;
}
.tabBar span {
    background-color: #e8e8e8;
    cursor: pointer;
    display: inline-block;
    float: left;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
}
.tabBar span.current {
    background-color: #636363;
    color: #fff;
    height: 40px;
    line-height: 40px;
}
 .line{
 	position: absolute;
		    right: 0;
		    top: 13px;
		    background: #636363;
		    width: 1px;
		    height: 14px;
		    overflow: hidden;
 }
 .cl span{
 	position: relative;
 }
 .next_xiala{
 	width: 20px;
 }
 .text-c{
 	margin-bottom: 35px;
 }
  .text-c td a {
    text-decoration: none !important;
    color: #333;
}
</style>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 
	财务管理
	<span class="c-gray en">&gt;</span>
	人工存取
	<span class="c-gray en">&gt;</span>
	人工取出列表
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>

<div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
<div class="page-container" style="padding-top: 0px;">

		<div id="tab-system" class="HuiTab">
			
			<div class="tabBar cl">
				<a href="{:url('recharge/cz_sgcz_list')}"><span>人工存入列表</span></a>
				<span>人工取出列表</span>
			</div>
	
				<div class="">
					<div class="cl pd-5 bg-1 bk-gray mt-20 next_xiala" style="margin-left:17px;"><span class="l"><a class="btn btn-primary radius" data-title="人工取出" href="{:url('recharge/cz_sgkk')}" style="background-color: #409eff;border: 1px solid #409eff;border-radius: 5px;color: white">人工取出</a></span></div>
				      <div class="text-c" style="margin-top:10px;">
				    <form action="/admin/recharge/cz_sgkk_list" enctype="application/x-www-form-urlencoded" method="post" class="l" style="margin-left:20px;">
				  
				    <input type="text" name="us_sql" id="us_sql" value="{$username}" placeholder=" 会员账号" style="width:250px" class="input-text">
				    日期范围：
				    <input type="text" name="sDate1" value="{$time1}" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmin" class="input-text Wdate" style="width:120px;">
				    -
				    <input type="text" name="sDate2" value="{$time2}" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmax" class="input-text Wdate" style="width:120px;">
				    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
				    
				  </form>
				  <span class="r" style="margin-right:20px;">当前列表充值金额：<strong>{$money}</strong> 元</span>
				  </div>
				
				     <div class="page-container dataTables_wrapper">
				      <div id="tab-system" class="HuiTab">
				      
				          <div class="mt-20">
				            <table
				              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
				              <thead>
				                <tr class="text-c">
				                  <th>ID</th>
				                  <th>会员名称</th>
				                  <th>扣款金额</th>
				                  <th>扣款时间</th>
				                  <th>扣款理由</th>
				                  <th>操作员</th>
				                </tr>
				                {volist name="query" id="item"}
				              </thead>
				              <tbody>
				              
				                <tr class="text-c">
				                  <td>{$item.id}</td>
				                  <td>{$item.username}</td>
				                  <td>{$item.kkje}</td>
				                  <td>{$item.kktime|date="Y-m-d H:i:s",###}</td>
				                  <td><a title='{$item.kkliyou}' style='display:block; width:100px; margin:0 auto; text-align:center; background:none; border:none; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; word-break:keep-all;'>{$item.kkliyou}</a></td>
				                  <td>{$item.czadmin}</td>
				                     {/volist}
				                </tr>
				              
				              </tbody>
				            </table>
				          </div>
				     
				      </div>
				      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
				      		<div style="float:left;">  
					          每页显示<select name="limit" style="height:26px;" id="code">
					          		 <option value="20" {if condition="$limit eq 20"}selected{/if}>
                20
              </option>
              <option value="50" {if condition="$limit eq 50"}selected{/if}>
                50
              </option>
              <option value="100" {if condition="$limit eq 100"}selected{/if}>
                100
              </option>                      
					           </select>页
					          </div>
				            <span style="float:right;margin-left:-2px;">总共{$query->lastPage()}页  当前第{$query->currentPage()}页 ，共{$query->total()}条</span>
				            <div style="float:left;">{$query->render()}</div>
				    </div>
				    </div>
				</div>
				
			</div>

		</div>
	</div>

		</div>
{/block}
{block name="js"}
<script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="__SYSMET__/common.js"></script>
	<script type="text/javascript">
	$(function(){
		$("#tab-system").Huitab({
			index:1
		});
	});
</script>
<script>
$(function(){
var username=$("#us_sql").val();
var time1=$("#logmin").val();
var time2=$("#logmax").val();
var id = $(this).find('option:selected').val();
var li=$(".am-pagination").children();
  for (i = 0; i < li.length; i++) {
        
        var url=li.eq(i).attr('href');
        if(url){
          li.eq(i).attr('href',url+'&username='+username+'&time1='+time1+'&time2='+time2+"&limit="+id);
        }       
    }
  
})
$("#code").on('change',function(){
    var username=$("#us_sql").val();
    var time1=$("#logmin").val();
    var time2=$("#logmax").val();
    var id = $(this).find('option:selected').val();
    window.location.href="/admin/recharge/cz_sgkk_list?username="+username+"&limit="+id+"&time1="+time1+"&time2="+time2;
  })
</script>
{/block}
